package com.xbts.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xbts.system.domain.CnUserCloudServersRelation;

import java.util.List;
import java.util.Map;

/**
 * 用户-弹性云服务器关系Mapper接口
 *
 * @author xbts
 * @date 2023-08-03
 */
public interface CnUserCloudServersRelationMapper extends BaseMapper<CnUserCloudServersRelation> {


    List<CnUserCloudServersRelation> selectCnUserCloudServersRelationList(CnUserCloudServersRelation cnUserCloudServersRelation);

    List statisticsStatus(CnUserCloudServersRelation cnUserCloudServersRelation);

    /**
     * 查询用户购买的政务云数量
     * @param userId
     */
    List<Map> selectUserServiceCount(Long userId);

    long selectCnUserCloudServersRelationCount(CnUserCloudServersRelation cnUserCloudServersRelation);
}
